import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../../services/http-client.service'
@Injectable()
export class SubmitService {

	constructor(public httpClient: HttpClientService) {

	}
	// 获取提交、保存并提交、撤销信息
	// list(getBody) {
	// 	return this.httpClient.get('/pms/v1/riskmanage/investJournal/oldAndNewDataByNIxIds', getBody);
	// }
	// 提交
	submits(putBody) {
		return this.httpClient.put('/pms/v1/riskmanage/investJournal/investJournal', putBody);
	}
	// 保存并提交
	saveSubmits(putBody) {
		return this.httpClient.put('/pms/v1/riskmanage/investJournal/saveAndSubmit', putBody);
	}
	// 撤销
	cancel(putBody) {
		return this.httpClient.put('/pms/v1/riskmanage/investJournal/revocation', putBody);
	}
	//设置默认接口
	setDefault(postBody) {
		return this.httpClient.post('/pms/v1/sendHis/setDefault', postBody);
	}
	//获取设置默认值
	defaultValue(getBody) {
		return this.httpClient.get('/pms/v1/sendHis/defaultValue', getBody);
	}
}
